package migrate

import (
	"gitee.com/enjoy_5/goods-rpc/internal/model"
	"gitee.com/xuxinzhi2206/corehub/database/mysql"
	"gorm.io/gorm"
)

func AutoMigrate() error {
	return mysql.WithMysql(func(db *gorm.DB) error {
		return db.AutoMigrate(
			&model.Goods{},
			&model.GoodsSku{},
			&model.GoodsProperty{},
			&model.GoodsPropertyValue{},
			&model.Types{},
		)
	})
}

//
